<?php
/*
	样式设置
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('page',$postdata);
		exi('设置成功');
	}
	$item=$this->plugin_setting('page');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'样式/文字',
		'edit'=>array(),
	);
	foreach($item as $key=>$value){
		$htmls['edit'][]=array('type'=>'string','name'=>$key,'title'=>$value);
	}
	$return['item']=$item;
	$return['htmls']=$htmls;
	exi($return);
}

